package test1223;

public class Test07 {
    public static void main(String[] args) {

        // 求1+2+3+4+5+6+7+8+9+10和
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum += i;
        }
        System.out.println("上述数字和为："+sum);
    }
}
